package com.briup.app04.service.impl;

import com.briup.app04.bean.Test;
import com.briup.app04.dao.TestMapper;
import com.briup.app04.service.ITestService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class TestServiceImpl implements ITestService {
    @Resource
    private TestMapper testMapper;
    @Override
    public List<Test> findAll() {

        List<Test> list = testMapper.selectAll();

        return list;

    }

    @Override
    public void save(Test cms_category) {

        testMapper.insert(cms_category);
    }

    @Override
    public void update(Test cms_category) {

        testMapper.update(cms_category);

    }
    @Override
    public void delete(Long id){

        testMapper.delete(id);

    }

}
